const security = {
  type: 'params',
  AppID: 'F76D7D4B-7154-47D7-B7D7-51720075D2F4',
  AppSecret: 'A780C92E-F023-4537-9269-28DA61A85A28'
};

const iWorkflowPortals = [
  {
    text: 'Build环境 - 7000',
    value: 'http://10.164.2.213:7000'
  },
  {
    text: 'Build环境 - 7001',
    value: 'http://10.164.2.213:7001'
  },
  {
    text: 'UAT环境',
    value: 'https://nwfuat.capitaland.com.cn'
  },
  {
    text: '生产环境',
    value: 'https://nwf.capitaland.com.cn'
  }
];

const pdfModes = [
  { text: '全部', value: '' },
  { text: '仅审批记录', value: '|NoIFrame=true' }
]

export default [
  {
    name: 'iWorkflow',
    security: security
  },
  {
    name: 'PDF生成 / iWorkflow详情',
    mode: 'file',
    security: security,
    params: {
      UserId: 'dc\\LuJuan1',
      ProcessId: '15172',
      BizFormId: '217496'
    },
    body: {
      subQuery: {
        value: '',
        type: 'single',
        method: 'get',
        items: [
          {
            text: '通用流程',
            value: '/api/LeoBizCommon/GetLeoBizCommonForm'
          }
        ]
      },
      portal: {
        value: '',
        items: iWorkflowPortals,
        ig: true
      },
      pdfMode: {
        value: '',
        items: pdfModes,
        ig: true
      }
    }
  },
  {
    name: 'PDF生成 / iWorkflow列表',
    mode: 'file',
    security: security,
    params: {
      UserId: 'dc\\LuJuan1'
    },
    body: {
      subQuery: {
        method: 'post',
        value: '',
        type: 'multi',
        items: [
          {
            text: '我的待办',
            value: '/api/MyWork/GetWaitListForLeo'
          },
          {
            text: '我的已提交',
            value: '/api/MyWork/GetMySubmitListForLeo'
          },
          {
            text: '我的已审核',
            value: '/api/MyWork/MyApprovaledListForLeo'
          }
        ],
        ig: true
      },
      portal: {
        value: '',
        items: iWorkflowPortals,
        ig: true
      },
      pdfMode: {
        value: '',
        items: pdfModes,
        ig: true
      },
      CurrentPage: 1,
      PageSize: 20
    }
  }
]